package com.tlm.cloudzuul;

import com.netflix.zuul.ZuulFilter;
import com.netflix.zuul.exception.ZuulException;
import org.springframework.stereotype.Component;

@Component
public class PreFilter2 extends ZuulFilter {

    @Override
    public String filterType() {//过滤类型：前置后置
        return "pre";
    }

    @Override
    public int filterOrder() {//过略级别，可以为负越小级别越高
        return 1;
    }

    @Override
    public boolean shouldFilter() {//是否开启过滤器
        return false;
    }

    @Override
    public Object run() throws ZuulException {//要执行的方法体
        return null;
    }
}
